package net.babypai.model;

public class ChatMessage {
	public static final int MESSAGE_FROM = 0;
	public static final int MESSAGE_TO = 1;
	private int direction;
	private String content;
	private String mId;
	private String thisId;
	private long addtime;
	
	@Override
	public String toString() {
		return "ChatMessage [direction=" + direction + ", content=" + content
				+ ", mId=" + mId + ", thisId=" + thisId + ", addtime="
				+ addtime + "]";
	}
	public int getDirection() {
		return direction;
	}
	public void setDirection(int direction) {
		this.direction = direction;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getmId() {
		return mId;
	}
	public void setmId(String mId) {
		this.mId = mId;
	}
	public String getThisId() {
		return thisId;
	}
	public void setThisId(String thisId) {
		this.thisId = thisId;
	}
	public long getAddtime() {
		return addtime;
	}
	public void setAddtime(long addtime) {
		this.addtime = addtime;
	}
	
	public ChatMessage(int direction, String content, String mId,
			String thisId, long addtime) {
		super();
		this.direction = direction;
		this.content = content;
		this.mId = mId;
		this.thisId = thisId;
		this.addtime = addtime;
	}
	public ChatMessage() {
		super();
		// TODO Auto-generated constructor stub
	}

}